
import {
    DIC
} from '@/const/dic';
import Store from '../../store/';
const allPermission = Store.state.user.permission;
const isAdmin = Store.state.user.userInfo.superAdmin;
export const refundOrderInfoTableOption = {
    border: false,
    index: false,
    selection: false,
    calcHeight: 350,
    columnBtn: false,
    searchClearable: false,
    selectClearBtn: false,
    searchResetBtn: false,
    height: "auto",
    menu: true,
    menuAlign: "center",
    searchBtn: true,
    labelWidth: 120,
    refreshBtn: true,
    tip: false,
    addBtn: false,
    dialogWidth: '800px',
    dialogHeight: 'auto',
    menuWidth: 200,
    editBtn: false,
    viewBtn: false,
    delBtn: false,
    column: [
        {
            "label": "订单状态",
            "prop": "itemStatus",
            "search": true,
            "type": "tag",
            "fixed": false,
            "width": "100",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "placeholder": "请选择订单状态",
            "dicData": DIC["orderInfoorderStatusDic"]
        },
        {
            "label": "退款状态",
            "prop": "refundApplyProcessStatus",
            "search": false,
            "type": "tag",
            "fixed": false,
            "width": "150",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "placeholder": "请选择订单状态",
            "dicData": DIC["processStatusDic"]
        },
        // {
        //     "label": "申请退款时间",
        //     "prop": "refundApplyTime",
        //     "search": true,
        //     "type": "text",
        //     "fixed": false,
        //     "width": "auto",
        //     "row": false,
        //     "minWidth": "160",
        //     "readonly": false,
        //     "span": 12,
        //     "display": true,
        //     "hide": false
        // },
        {
            "label": "订单编号",
            "prop": "orderNo",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "160",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        // {
        //     "label": "主播手机号",
        //     "prop": "userMobile",
        //     "search": false,
        //     "type": "text",
        //     "fixed": false,
        //     "width": "auto",
        //     "row": false,
        //     "minWidth": "120",
        //     "readonly": false,
        //     "span": 12,
        //     "display": true,
        //     "hide": false
        // },
        // {
        //     "label": "主播姓名",
        //     "prop": "realName",
        //     "search": false,
        //     "type": "text",
        //     "fixed": false,
        //     "width": "auto",
        //     "row": false,
        //     "minWidth": "100",
        //     "readonly": false,
        //     "span": 12,
        //     "display": true,
        //     "hide": false
        // },
        {
            "label": "商品名称",
            "prop": "title",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "180",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "商品图片",
            "prop": "skuImg",
            "search": false,
            "type": "upload",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "listType": "picture-img",
            "showFileList": false,
            "imgHeight": 60,
            "imgWidth": "auto",
            "action": "/admin/upload/image",
            "tip": "只能上传jpg/png文件，且不超过500kb",
            "rules": [{
                "required": true,
                "message": "请上传banner图片",
                "trigger": "blur"
            }]
        },
        {
            "label": "商品购买数量",
            "prop": "goodsNum",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "商品单价",
            "prop": "salePrice",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "退款类型",
            "prop": "refundApplyType",
            "search": false,
            "type": "select",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            dicData:DIC.refundApplyTypeDic
        },
        {
            "label": "货物状态",
            "prop": "goodsStatus",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "退款原因",
            "prop": "applyReason",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "申请退款金额",
            "prop": "applyAmount",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "退款说明",
            "prop": "applyRemark",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "退款上传凭证",
            "prop": "applyAccessory",
            "search": false,
            "type": "upload",
            dataType: 'array',
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "listType": "picture-card",
            "showFileList": false,
            "imgHeight": 60,
            "imgWidth": "auto",
            "action": "/admin/upload/image",
            "tip": "只能上传jpg/png文件，且不超过500kb",
            "rules": [{
                "required": true,
                "message": "请上传banner图片",
                "trigger": "blur"
            }]
        },
        
 
        {
            "label": "退款金额",
            "prop": "refundAmount",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": false,
            "hide": false
        },
        {
            "label": "退款时间",
            "prop": "refundTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": false,
            "hide": false,
            "format": "yyyy-MM-dd HH:mm:ss",
            "valueFormat": "yyyy-MM-dd HH:mm:ss"
        }
    ]
};
